package com.linglan.common.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 主键生成参数配置
 */
@Data
@Configuration
public class PrimaryKeyConfig {

    @Value("${primary-key.workstation.worker-id}")
    private Long workerId;

    @Value("${primary-key.workstation.datacenter-id}")
    private Long datacenterId;
}
